package com.hospital.register.core.client;

import com.hospital.register.vo.core.api.HospitalSignVo;
import com.hospital.register.vo.core.api.ScheduleDetailVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 访问医院信息
 *
 * @author 刘逸晖
 */
@FeignClient(value = "service-hosp")
@Repository
public interface HospitalFeignClient {

    /**
     * 获取医院签名信息
     */
    @GetMapping("/api/hosp/hospital/inner/getSignInfoVo/{hoscode}")
    HospitalSignVo getSign(@PathVariable("hoscode") String hoscode);


    /**
     * 根据排班id获取排班信息
     *
     * @param scheduleId 排班的 id
     * @return 排班信息
     */
    @GetMapping("/api/hosp/hospital/inner/getScheduleOrderVo/{scheduleId}")
    ScheduleDetailVo getScheduleById(@PathVariable("scheduleId") String scheduleId);

}
